import businessRoute from './business'; // 商户
import walletRoute from './wallet'; // 钱包
export default [
  {
    path: '/',
    name: 'index',
    redirect: '/business',
    component: () => import(/* webpackChunkName: "about" */ '@/views/home/index.vue'),
    children: [
      {
        path: '/business',
        name: 'business',
        meta: {
          title: '商户',
          isAuth: true,
        },
        component: () => import(/* webpackChunkName: "about" */ '@/views/business/index.vue'),
      },
      {
        path: '/wallet',
        name: 'wallet',
        meta: {
          title: '钱包',
          isAuth: true,
        },
        component: () => import(/* webpackChunkName: "about" */ '@/views/wallet/index.vue'),
      },
      // {
      //   path: '/customer',
      //   name: 'customer',
      //   meta: {
      //     title: '我的顾客',
      //     isAuth: true,
      //   },
      //   component: () => import(/* webpackChunkName: "about" */ '@/views/customer/index.vue'),
      // },
      // {
      //   path: '/mine',
      //   name: 'mine',
      //   meta: {
      //     title: '我的',
      //     isAuth: true,
      //   },
      //   component: () => import(/* webpackChunkName: "about" */ '@/views/mine/index.vue'),
      // },
     
    ],
  },
  ...businessRoute,
  ...walletRoute,
];
